package com.nifostasky.config.fallback;

import com.nifostasky.config.StudentFeignClient;
import com.nifostasky.entity.Student;
import org.springframework.stereotype.Component;

@Component
public class FallbackFeign implements StudentFeignClient {
    @Override
    public Student queryUserById(Integer id) {
        System.out.println("==============熔断了,fallback方式;====================");
        return new Student();
    }
}
